/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package figuras;


/**
 *
 * @author rivas
 */
public class cuadradoAbstracto {
     Figura [] figuras;
    public cuadradoAbstracto( Figura [] figura)
    {
        this.figuras=figura;
    }
    public float areaOcupada()
    {
        float dimension;
        dimension = 0f;
        for(int i=0;i<figuras.length;i++){dimension+=figuras[i].area();}
        return dimension;
    }
        
}
